package com.example.springbootdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@EnableAsync
public class SpringbootdemoApplication {

    public static void main(String[] args) {

        SpringApplication.run(SpringbootdemoApplication.class, args);
        System.out.println("******************************************");
        System.out.println("*      SpringBoot start-up success       *");
        System.out.println("******************************************");
        //返回ioc容器
//        ConfigurableApplicationContext run = SpringApplication.run(SpringbootdemoApplication.class, args);
//        //查看容器中的组件
//        String[] names=run.getBeanDefinitionNames();
//        for (String name:names){
//            System.out.println(name);
//        }

    }

}
